package bean;
public class User {

    private String userName;
    String password;
 
    public User() {}

    public String getUserName() {
        return userName;}
    public void setUserName(String userName) {
        this.userName = userName;}
    public boolean isPasswordValid(String inputPassword) {
        if (inputPassword.equalsIgnoreCase("root")) {
            return true;
        } else {
            return false;}}
    public boolean isUserNameValid(String inputUserName) {
        if (inputUserName.matches("[A-Z, a-z]*")) {
            return true;
        } else {
            return false;}}
    public String getPassword() {
        return password;}
    public void setPassword(String password) {
        this.password = password;}
}
